﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrMobilePhone.ascx.cs"
    Inherits="controls_usrMobilePhone" %>




<span>
    <asp:TextBox ID="txtPhoneNo" runat="server" MaxLength="10" ToolTip="Enter 10 digits phone number." Width="135px" Height="18px" /><br />
    <asp:Label ID="lblEmailSample" runat="server" CssClass="SampleText" Text="<%$ Resources:CarInsurance,MobileSample%>"></asp:Label>
</span>

<span>    
    <%--Require Phone Number--%>
    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvPhoneNo"
        runat="server" ControlToValidate="txtPhoneNo" ErrorMessage="" Text="" Display="Dynamic">
     </asp:RequiredFieldValidator>

    <%--Phone number is not valid.--%>
    <asp:CustomValidator CssClass="validationErrorControl" ID="csvPhoneNo" runat="server"
        ControlToValidate="txtPhoneNo" Display="Dynamic" Text="" ErrorMessage="" 
        OnServerValidate="CheckPhoneNoServerValidation"></asp:CustomValidator>
        <br />
    <%--Phone number must be 9 digits number value.--%>
    <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revPhoneNo"
        runat="server" ValidationExpression="[0-9]{10}" ControlToValidate="txtPhoneNo"
        ErrorMessage="<%$ Resources:CarInsurance,MobileError%>" Text="" Display="Dynamic"></asp:RegularExpressionValidator>                
</span>        
